<?php
	require_once '../pic/class.y.php';

	define("ROOTS",realpath(dirname(__FILE__)));
	$path = realpath($_SERVER['SCRIPT_FILENAME']);	
	$smarty->template_dir = str_replace(ROOTS,ROOTS.'/templates',dirname($path));
	$smarty->compile_dir = str_replace(ROOTS,ROOTS.'/templates_c',dirname($path));	

	$xml = simplexml_load_file('xml/web-data.xml');
	$_url = thisUrl();
	$id = intval($_GET['id']);
	$smarty->_assign(array('xml','_url'));
	
?>